package com.itheima.service.mongo;

import com.itheima.domain.mongo.Comment;
import com.itheima.domain.mongo.FocusUser;
import com.itheima.domain.mongo.Video;
import com.itheima.vo.PageBeanVo;

public interface VideoService {

    //查询小视频列表
    PageBeanVo findVideo(Long userId, Integer pageNum, Integer pageSize);

    //发布小视频
    void saveVideo(Video video);

    //小视频用户关注
    void saveUserFocus(FocusUser focusUser);

    //删除小视频用户关注
    void deleteUserFocus(Long userId, Long videoUserId);

    ////用户视频
    PageBeanVo findUserVideoList(Long uid, Integer pageNum, Integer pageSize);

    //根据id查询视频
    Video findVideoById(String videoId);

    PageBeanVo videosCommentsList(String videoId, Integer pageNum, Integer pageSize);

    //评论点赞
    Integer videoCommentsLike(Comment comment, Long userId);

    Comment findVideoComment(String commentId);
    //评论取消点赞
    Integer videoCommentsDislike(Comment comment, Long userId);
}
